package com.eeepay.eeepay_v2.model;

import com.eeepay.eeepay_v2.R;

import java.io.Serializable;

/**
 * Created by Ching on 2016/4/2514:57.
 * 证件资料实体类
 */
public class PapersInfo implements Serializable {

    private String fileName;
    private String tipName;//照片进件名
//    private Bitmap bitmap;
    private int tipImage;//照片对应的进件示例图
    private String photo;
    private String remark;
    private String filePath;
    private String itemId;//服务器返回的进件id

    public PapersInfo() {
    }

    public PapersInfo(String fileName, String filePath) {
        this.fileName = fileName;
        this.filePath = filePath;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getTipName() {
        return tipName;
    }

    public void setTipName(String tipName) {
        this.tipName = tipName;
    }

//    public Bitmap getBitmap() {
//        return bitmap;
//    }
//
//    public void setBitmap(Bitmap bitmap) {
//        this.bitmap = bitmap;
//    }

    public int getTipImage() {
        return tipImage;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
        switch (itemId) {
            case "8":
                tipImage = R.drawable.scsfz;//手持身份证
                break;
            case "9":
                tipImage = R.drawable.sfzzm;//身份证正面
                break;
            case "10":
                tipImage = R.drawable.sfzfm;//身份证反面
                break;
            case "11":
                tipImage = R.drawable.yhkzm;//银行卡正面
                break;
            case "12":
                tipImage = R.drawable.yyzz;//营业执照
                break;
        }
    }

    public String getItemId() {
        return itemId;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

}
